<%@ page language="java" contentType="text/html;charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Student Portal</title>
<link href="style/css/IndexStyle.css" rel="stylesheet" type="text/css">
</head>
<body>

<%
if((session.getAttribute("username") == null) || ("").equals(session.getAttribute("username")))
{
	response.sendRedirect("login.jsp");
}
	if(("admin").equals(session.getAttribute("type"))){
	response.sendRedirect("indexAdmin.jsp");
	}

String type = session.getAttribute("type").toString();
//out.println("You are welcome, " + type + "!");
 %>

<div class="main">
	<div class="wrapper">
	
	<p class='txt'>Добро Пожаловать,<br><%= session.getAttribute( "fullname" ) %></p>
	
	<div id="panel-navigation">
			
			<ul id="navigationMenu">
				<li>
					<a class="home" href="#">
						<span>На главную</span>
					</a>
				</li>
				<li>
					<a class="about" href="<% out.print("logout.jsp"); %>">
						<span>Выйти</span>
					</a>
				</li>
				<li>
					<a class="contact" href="#">
						<span>Контакты</span>
					</a>
				</li>
			</ul>
			
	  
		</div>
		
	  <div class="oval11">
	  
	    <a href = "<% out.print(type+".jsp?action=schedule"); %>" >
			<div class="content">Расписание экзаменов</div>
			</a>
		</div>
        
      <div class="oval21">
      <a href = "<% out.print(type+".jsp?action=exam_res"); %>" >
   	    <div class="content">Результаты экзаменов</div>
   	    </a>
        </div>
        
		<div class="oval31">
		<a href="<% out.print(type+".jsp?action=materials"); %>">
       	  <div class="content">Дополнительные материалы</div>
       	  </a>
        </div>
        
        
    
</div>
</div>

</body>
</html>